package com.shi.yibanjia.common.exception;

import com.shi.yibanjia.common.ResultCodeEnum;
import lombok.Data;

import java.io.Serializable;

@Data
public class CustomException extends RuntimeException implements Serializable {

    private static final long serialVersionUID = -4247072754984392809L;

    private ResultCodeEnum resultCodeEnum;
    public CustomException(ResultCodeEnum resultCodeEnum) {
        this.resultCodeEnum=resultCodeEnum;
    }
}
